home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / pcr / pcr4_4.lha / DIST / debugnub / INCLUDE / xr / CirioNubEnvironment.h < prev    next >
C/C++ Source or Header  |  1990-01-05  |  2KB  |  91 lines

  1. /* begincopyright
  2.   Copyright (c) 1988 Xerox Corporation. All rights reserved.
  3.   Use and copying of this software and preparation of derivative works based
  4.   upon this software are permitted. Any distribution of this software or
  5.   derivative works must comply with all applicable United States export
  6.   control laws. This software is made available AS IS, and Xerox Corporation
  7.   makes no warranty about the software, its performance or its conformity to
  8.   any specification. Any person obtaining a copy of this software is requested
  9.   to send their name and post office or electronic mail address to:
  10.     PCR Coordinator
  11.     Xerox PARC
  12.     3333 Coyote Hill Rd.
  13.     Palo Alto, CA 94304
  14.   endcopyright */
  15.  
  16. /*
  17.  * CirioNubEnvironment.h
  18.  *
  19.  * Demers, January 5, 1990 12:42:37 pm PST
  20.  *
  21.  * This is the environment in which CirioNub procedures run
  22.  * on the slave IOP.  It describes
  23.  *
  24.  *   - global state shared among CirioNub procs
  25.  *   - some useful utilities
  26.  */
  27.  
  28. #ifndef _CIRIO_NUB_ENVIRONMENT_
  29. #define _CIRIO_NUB_ENVIRONMENT_
  30.  
  31. #include "xr/CirioNubProtocol.h"
  32. #include "xr/CirioNubMarshall.h"
  33.  
  34. /*
  35.  * Global state on slave processor
  36.  */
  37.  
  38. typedef struct CirioNubState {
  39.     bool cns_gotSig;
  40.     bool cns_memerrJmpBufValid;
  41.     struct XR_JmpBufRep cns_memerrJmpBuf;
  42.     int cns_printConsoleMessages;
  43. };
  44.  
  45. extern struct CirioNubState cns;
  46.  
  47.  
  48. /*
  49.  * Memory accessibility test
  50.  */
  51.  
  52. extern bool
  53. CirioNubCanAccess(/*
  54.     char *p,
  55.     int nBytes,
  56.     bool write
  57. */);
  58. /*
  59.     Check to be sure specified addresses are accessible.
  60.     Return TRUE if accessible, FALSE if not.
  61. */
  62.  
  63.  
  64. /*
  65.  * Pause utility
  66.  */
  67.  
  68. extern int
  69. CirioNubSlaveSleep(/* unsigned Msecs */);
  70. /*
  71.     Pause for specified number of milliseconds, using a "select" system call
  72.     rather than the sleep library routine (which doesn't work right
  73.     in the slave iop environment).
  74.     Return 0 on success, errno (usually EINTR) on failure.
  75. */
  76.  
  77.  
  78. /*
  79.  * send signal to debuggee
  80.  */
  81.  
  82. extern void
  83. CirioNubKickDebuggee();
  84. /*
  85.     Send resched signal to debuggee,
  86.         (with luck) making him respond to our most recent command.
  87. */
  88.  
  89.  
  90. #endif /* _CIRIO_NUB_ENVIRONMENT_ */
  91.